<li>
  <% prefix = 'order[order_items][]'%>
  <% fields_for prefix, item do |i| %>
    <% fields_for "#{prefix}[dish]", item.dish do |d|%>
        <%= d.text_field :name%>
    <% end %>
    <%= i.text_field :count%>
  <% end %>
  <%= link_to_function t('delete'), "$($(this).parentNode).remove()" %>
</li>


